package com.niguang.labour.admin.entity;

import java.io.Serializable;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 'work.v_personSite' is not BASE TABLE
 * </p>
 *
 * @author 
 * @since 2018-07-07
 */
@TableName("work_visitor")
public class WorkVisitor extends Model<WorkVisitor> {

    private static final long serialVersionUID = 1L;

	private Long id;
    /**
     * 工地id
     */
	@TableField("site_id")
	private Long siteId;
    /**
     * 姓名
     */
	private String name;
    /**
     * 手机号
     */
	private String phone;
    /**
     * 身份证
     */
	@TableField("id_card")
	private String idCard;
    /**
     * 图片链接
     */
	@TableField("face_url")
	private String faceUrl;
    /**
     * 卡片ID
     */
	@TableField("ic_card")
	private String icCard;
	@TableField("create_time")
	private Date createTime;
	@TableField("update_time")
	private Date updateTime;
	@TableField("del_flag")
	private Boolean delFlag;


	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getSiteId() {
		return siteId;
	}

	public void setSiteId(Long siteId) {
		this.siteId = siteId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getIdCard() {
		return idCard;
	}

	public void setIdCard(String idCard) {
		this.idCard = idCard;
	}

	public String getFaceUrl() {
		return faceUrl;
	}

	public void setFaceUrl(String faceUrl) {
		this.faceUrl = faceUrl;
	}

	public String getIcCard() {
		return icCard;
	}

	public void setIcCard(String icCard) {
		this.icCard = icCard;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public Boolean getDelFlag() {
		return delFlag;
	}

	public void setDelFlag(Boolean delFlag) {
		this.delFlag = delFlag;
	}

	public static final String ID = "id";

	public static final String SITE_ID = "site_id";

	public static final String NAME = "name";

	public static final String PHONE = "phone";

	public static final String ID_CARD = "id_card";

	public static final String FACE_URL = "face_url";

	public static final String IC_CARD = "ic_card";

	public static final String CREATE_TIME = "create_time";

	public static final String UPDATE_TIME = "update_time";

	public static final String DEL_FLAG = "del_flag";

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "WorkVisitor{" +
			"id=" + id +
			", siteId=" + siteId +
			", name=" + name +
			", phone=" + phone +
			", idCard=" + idCard +
			", faceUrl=" + faceUrl +
			", icCard=" + icCard +
			", createTime=" + createTime +
			", updateTime=" + updateTime +
			", delFlag=" + delFlag +
			"}";
	}
}
